<!--营业时间-->
<div class="form-group" {guanlians}>
	<label class="col-xs-12 col-sm-3 col-md-2 right-label" ng-init="checkobj({tovalue},'{name}')">{{check_show_lang('{title}')}}</label>
			<div class="col-xs-12 col-sm-8 col-lg-9">
				<div class="timebox">
							<ul class="list-unstyled timelist clockpicker" data-autoclose="true">
								<li class="input-group">
									<span class="input-group-addon">时间段</span>
									<input type="text" id="clockpickerstart" ng-model="{tovalue}.{name}.start" class="form-control starttime" value="{{{tovalue}.{name}.start}}">
									<span class="input-group-addon">-</span>
									<input type="text" id="clockpickerend" ng-model="{tovalue}.{name}.end" class="form-control endtime" value="{{{tovalue}.{name}.end}}">
								</li>
							</ul>
				</div>
			<div class="help-block">{help}</div>
		</div>
</div>
<script type="text/javascript">
require(['clockpicker'], function( $ , _){
	$('.starttime').clockpicker({
		autoclose: true,
		afterDone: function() {
			var value=document.getElementById("clockpickerstart").value;  
			if(!value){
				value='8:00';
			}
			scope.{tovalue}.{name}.start = value;
        },
	});
	$('.endtime').clockpicker({
		autoclose: true,
		afterDone: function() {
			   var value=document.getElementById("clockpickerend").value;
			   if(!value){
					value='18:00';
				}
				scope.{tovalue}.{name}.end = value;
				console.log(scope.{tovalue}.{name}.end)
        },
	});
});
</script>